package com.example.thegreatwall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_table")
public class ArticleTable {
    /**
     * 文章id
     */
    @TableId(value = "article_table_id", type = IdType.INPUT)
    private Integer articleTableId;

    /**
     * 封面图片
     */
    @TableField(value = "cover_img")
    private String coverImg;

    /**
     * 文章标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 文章链接
     */
    @TableField(value = "article_link")
    private String articleLink;

    /**
     * 文章详情
     */
    @TableField(value = "`desc`")
    private String desc;
}